import IStudentServices from "./IStudentServices";
import StudentModel from "../Model/StudentMode";

export default class StudentServices implements IStudentServices {
    private students: Array<StudentModel> =new Array<StudentModel>();
    add(student: StudentModel): boolean {
        this.students.push(student);
        return true;
    }

    get(): Array<StudentModel> {
        return this.students;
    }

    update(student: StudentModel): boolean {
        throw new Error("Method not implemented.");
    }

    delete(student: StudentModel): boolean {
        throw new Error("Method not implemented.");
    }
    
    test():void{
        console.log("test");
    }
} 